import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { ProdRoutingModule } from './prod-routing.module';
import { ProdProductListComponent } from './product-list/product-list.component';
import { ProductAddComponent } from 'app/routes/prod/product-list/edit/product-add.component';
import { ProductViewEditComponent } from 'app/routes/prod/product-list/edit/product-edit.component';
import { GoodsPriceModalComponent } from 'app/routes/prod/goods-price/goods-price-modal.component';
import { GoodsImgUploadComponent } from './goods-upload/goods-img-upload.component';

const COMPONENTS = [
  ProdProductListComponent,
  GoodsImgUploadComponent
];
const COMPONENTS_NOROUNT = [
  ProductAddComponent,
  ProductViewEditComponent,
  GoodsPriceModalComponent
];

@NgModule({
  imports: [
    SharedModule,
    ProdRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT
})
export class ProdModule { }
